package com.team1.supervend.domain;

import java.util.ArrayList;

public class SpeedyAccountingAdapter implements IAccountingAdapter {
	public ArrayList<PurchaseOrder> purchaseOrders = new ArrayList<PurchaseOrder>();
	int id = 0;

	public SpeedyAccountingAdapter()
	{
		System.out.println("SpeedyAccountingAdapter ready for service");
	}

	
	public void postReceivable() {
		System.out.println("postReceivable() method has been activated in AccountingAdapter");

	}

	
	public void logSale(PurchaseOrder purchaseOrder) {
		System.out.println("LogSale() method has been activated in AccountingAdapter");
		System.out.println("purchase order index "+ id);
		purchaseOrders.add(id, purchaseOrder);
		id++;
	}

	
	public void updateInventory() {
		System.out.println("updateInventory() method has been activated in AccountingAdapter");
	}

}
